package com.ruoyi.lvlian.mapper;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.ruoyi.lvlian.domain.LhsOrder;
import com.ruoyi.lvlian.domain.LhsOrderItem;
import com.ruoyi.lvlian.dto.LhsOrderDto;
import com.ruoyi.lvlian.dto.LhsOrderItemDto;
import com.ruoyi.lvlian.vo.LhsOrderVo;

/**
 * 莱回收订单Mapper接口
 *
 * @author ruoyi
 * @date 2025-07-23
 */
public interface LhsOrderMapper {
    /**
     * 查询莱回收订单
     *
     * @param id 莱回收订单主键
     * @return 莱回收订单
     */
    public LhsOrderVo selectLhsOrderById(String id);

    /**
     * 查询莱回收订单列表
     *
     * @param lhsOrder 莱回收订单
     * @return 莱回收订单集合
     */
    public List<LhsOrderVo> selectLhsOrderList(LhsOrderDto lhsOrder);

    /**
     * 新增莱回收订单
     *
     * @param lhsOrder 莱回收订单
     * @return 结果
     */
    public int insertLhsOrder(LhsOrder lhsOrder);

    /**
     * 修改莱回收订单
     *
     * @param lhsOrder 莱回收订单
     * @return 结果
     */
    public int updateLhsOrder(LhsOrder lhsOrder);

    /**
     * 删除莱回收订单
     *
     * @param id 莱回收订单主键
     * @return 结果
     */
    public int deleteLhsOrderById(String id);

    /**
     * 批量删除莱回收订单
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteLhsOrderByIds(String[] ids);


    Map<String, Object> getDailyRevenue(LhsOrderDto lhsOrder);

    Map<String, Object> getDailyAveragePrice(LhsOrderDto lhsOrder);

    List<HashMap<String, Object>> queryOrdePriceByCategory(LhsOrderDto lhsOrder);


    List<LhsOrderItem> selectOrderItemsByOrderIds(List<String> orderIds);

    Map<String, Object> queryOrdeInfoSummaryByPad(LhsOrderDto lhsOrder);

    Map<String, Object> queryOrdeInfoByAmount(LhsOrderDto lhsOrder);

    Map<String, Object> queryOrdeInfoPriceByAmount(LhsOrderDto lhsOrder);

    Map<String, Object> queryOrdeInfoCntByAmount(LhsOrderDto lhsOrder);

    List<LhsOrderVo> queryOrderListByProductName(LhsOrderDto lhsOrder);

   LhsOrderVo  queryCartOrderItemByMac(LhsOrderItemDto dto);

    LhsOrder selectLhsOrderOnlyById(String id);
}
